package com.ruoyi.monitor.model.Abstract;

import com.ruoyi.monitor.domain.Pollutant;

import java.util.ArrayList;
import java.util.List;

public interface Subject<T> {
     List<Observer> list = new ArrayList<>();
     public void registerObserver(T obs);
     // 移除订阅者
     public void removeObserver(T obs);
     //通知所有的观察者更新状态
     public void notifyAllObservers();
//     void notifyA(Pollutant obs);
//
//     void notifyMSG(Pollutant obs);
//
//     void notifyEMail(Pollutant obs);

}
